package com.tuanzi.loan.business.repository.system;

import com.tuanzi.loan.business.entity.system.Menu;
import com.tuanzi.loan.business.repository.system.custom.MenuRepositoryCustom;
import com.tuanzi.loan.core.repository.JPABaseRepository;

import java.util.List;

/**
 * @author Ray 2017/09/21
 */
public interface MenuRepository extends MenuRepositoryCustom, JPABaseRepository<Menu, String> {

    List<Menu> findAllByParentId(String parentId);

    Long countByParentId(String parentId);
}
